const request = require("../utils/request");




//商品详情
export const show = id=>{
    return request.get(`/api/goods/${id}`)
}

//收藏和取消收藏
export const collect = id=>{
    return request.post(`/api/collects/goods/${id}`)
}